<%@ page contentType="text/html; charset=UTF-8" language="java"
	pageEncoding="UTF-8" errorPage=""%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="../js/jquery.cookie.js"></script>
<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../js/json2.js"></script>
<script type="text/javascript" src="../js/sto.js"></script>
<script type="text/javascript" src="../js/LodopFuncs.js"></script>
<object id="LODOP_OB"
	classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
</head>
<body background="/images/sl.jpg">
	<div style="text-align: center">
		<form action="<c:url value="/lodop/sto.do" />" method="post">
			<table border="1" width="80%" align="center" bgcolor="#CCFFFF"
				style="border: solid 1px black; text-align: center; border-collapse: collapse">
				<tr>
					<td width="133" id="mtb001" align="center"><font face="黑体"
						color="#FF0000" size="6">&nbsp;《申通快递单打印》&nbsp;</font></td>
				</tr>
			</table>
			<table border="1" width="80%" align="center" bgcolor="#CCFFFF"
				style="border: solid 1px black; border-collapse: collapse">
				<tr>
					<td width="20%" height="16" style="border: solid 1px black">寄件人姓名:</td>
					<td width="20%"><input id="senderName" name="senderName"
						value="${sto.senderName}"></td>
					<td width="20%">收件人姓名:</td>
					<td width="20%"><input id="receiverName" name="receiverName"
						value="${sto.receiverName}"></td>
				</tr>
				<tr>
					<td>始发地:</td>
					<td><input id="departure" name="departure"
						value="${sto.departure}"></td>
					<td>目的地:</td>
					<td><input id="destination" name="destination"
						value="${sto.destination}"></td>
				</tr>
				<tr>
					<td>寄件人单位名称:</td>
					<td><input id="senderCompanyName" name="senderCompanyName"
						value="${sto.senderCompanyName}"></td>
					<td>收件人单位名称:</td>
					<td><input id="receiverCompanyName" name="receiverCompanyName"
						value="${sto.receiverCompanyName}"></td>
				</tr>
				<tr>
					<td>寄件人省:</td>
					<td><input id="senderProvince" name="senderProvince"
						value="${sto.senderProvince}"></td>
					<td>收件人省:</td>
					<td><input id="receiverProvince" name="receiverProvince"
						value="${sto.receiverProvince}"></td>
				</tr>
				<tr>
					<td>寄件人市:</td>
					<td><input id="senderCity" name="senderCity"
						value="${sto.senderCity}"></td>
					<td>收件人市:</td>
					<td><input id="receiverCity" name="receiverCity"
						value="${sto.receiverCity}"></td>
				</tr>
				<tr>
					<td>寄件人县:</td>
					<td><input id="senderCountry" name="senderCountry"
						value="${sto.senderCountry}"></td>
					<td>收件人县:</td>
					<td><input id="receiverCountry" name="receiverCountry"
						value="${sto.receiverCountry}"></td>
				</tr>
				<tr>
					<td>寄件人详细地址:</td>
					<td><input id="senderAddress" name="senderAddress"
						value="${sto.senderAddress}"></td>
					<td>收件人详细地址:</td>
					<td><input id="receiverAddress" name="receiverAddress"
						value="${sto.receiverAddress}"></td>
				</tr>
				<tr>
					<td>寄件人电话:</td>
					<td><input id="senderPhone" name="senderPhone"
						value="${sto.senderPhone}"></td>
					<td>收件人电话:</td>
					<td><input id="receiverPhone" name="receiverPhone"
						value="${sto.receiverPhone}"></td>
				</tr>
				<tr>
					<td>寄件人手机号:</td>
					<td><input id="senderMobile" name="senderMobile"
						value="${sto.senderMobile}"></td>
					<td>收件人手机号:</td>
					<td><input id="receiverMobile" name="receiverMobile"
						value="${sto.receiverMobile}"></td>
				</tr>
				<tr>
					<td colspan="2"><a href="javascript:insertSender(0)">保存寄件人信息</a></td>
					<td colspan="2"><a href="javascript:insertSender(1)">保存收件人信息</a></td>
				</tr>
				<tr>
					<td colspan="4"><input style="width: 133px" type="button"
						onClick="CreatePrintPage()" value="打印"></td>
				</tr>
			</table>
			<br />
			<div style="text-align: left">
				寄件人(收件人)姓名: <input type="text" name="senderNameForSerach"
					style="width: 200px"> <input type="submit" class="button"
					value="查询">
			</div>
		</form>
	</div>
	<div>
		<table border="1" align="center" width="100%"
			style="border: solid 1px black; border-collapse: collapse">
			<thead bgcolor="#FFC107">
				<tr>
					<th scope="row">寄件人姓名</th>
					<th scope="row">始发地</th>
					<th scope="row">寄件人单位名称</th>
					<th scope="row">寄件人省</th>
					<th scope="row">寄件人市</th>
					<th scope="row">寄件人区县</th>
					<th scope="row">寄件人详细地址</th>
					<th scope="row">寄件人联系电话</th>
					<th scope="row">寄件人手机号</th>
					<th scope="row">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="sender" items="${list}" varStatus="varstatus">
					<tr>
						<td>${sender.senderName}</td>
						<td>${sender.departure}</td>
						<td>${sender.senderCompanyName}</td>
						<td>${sender.senderProvince}</td>
						<td>${sender.senderCity}</td>
						<td>${sender.senderCountry}</td>
						<td>${sender.senderAddress}</td>
						<td>${sender.senderPhone}</td>
						<td>${sender.senderMobile}</td>
						<td><input type="button"
							onClick="addToSender(
							'${sender.senderName}',
							'${sender.departure}',
							'${sender.senderCompanyName}',
							'${sender.senderProvince}',
							'${sender.senderCity}',
							'${sender.senderCountry}',
							'${sender.senderAddress}',
							'${sender.senderPhone}',
							'${sender.senderMobile}')"
							value="设置为寄件人"> 
							<input type="button"
							onClick="addToReceiver('${sender.senderName}',
							'${sender.departure}',
							'${sender.senderCompanyName}',
							'${sender.senderProvince}',
							'${sender.senderCity}',
							'${sender.senderCountry}',
							'${sender.senderAddress}',
							'${sender.senderPhone}',
							'${sender.senderMobile}')"
							value="设置为收件人"></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>